
from django.urls import path, re_path
from django.conf.urls import  include
from rest_framework import routers
from main_app import views

router = routers.SimpleRouter()
router.register(r'user', views.UserViewSet)
router.register(r'group', views.GroupViewSet)
router.register(r'musers',views.UsersViewSet)

# 使用自动URL路由连接我们的API。
# 另外，我们还包括支持浏览器浏览API的登录URL。
urlpatterns = [
    re_path(r'^', include(router.urls)),
]
